package cn.xsly.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDto {
    //图片验证码
    @NotEmpty(message = "图片验证码不能为空")
    private String imageCode;
    //图片验证码的key
    @NotEmpty(message = "非法请求")
    private String imageCodeKey;
    //手机号
    @NotEmpty(message = "手机号不能为空")
    @Size(min=11,max = 11,message = "手机格式不正确")
    private String mobile;

}
